EBINDIR	:= ebin
SRCDIR	:= src
INCDIR	:= include

ERLC 	:= $(shell which erlc)
ERLC_FLAGS := -I $(INCDIR) -o $(EBINDIR)

all:
	@mkdir -p $(EBINDIR)
	$(ERLC) $(ERLC_FLAGS) $(SRCDIR)/*.erl

clean:
	@rm -rf $(EBINDIR)/*
